

//
//  KBannerHeadTableViewCell.m
//  DrugPin
//
//  Created by guohe on 2018/9/11.
//  Copyright © 2018年 outang. All rights reserved.
//

#import "KBannerHeadTableViewCell.h"

@implementation KBannerHeadTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI{
    [self addSubview:self.headImage];
    [self.headImage mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.mas_equalTo(self);
    }];
    
}

#pragma mark - getter
-(UIImageView *)headImage{
    if (!_headImage) {
        _headImage = [[UIImageView alloc] init];
//        _headImage.image = [UIImage imageNamed:@"banner_home"];
    }
    return _headImage;
}
@end
